package nc.vo.am.inventory;

import nc.vo.am.common.BillVO;
import nc.vo.am.common.util.AmUtils;
import nc.vo.pub.pf.IPfRetBackCheckInfo;
import nc.vo.pub.pf.IPfRetCheckInfo;

public class InventoryVO extends BillVO implements IPfRetBackCheckInfo, IPfRetCheckInfo {

	/**
	 * 
	 */
	public InventoryVO() {
	}

	public void setCheckMan(String approveid) {
		((InventoryHVO) getParentVO()).setChecker(approveid);

	}

	public void setCheckNote(String strCheckNote) {
		((InventoryHVO) getParentVO()).setCheckopinion(strCheckNote);

	}

	public void setCheckState(int icheckState) {
		AmUtils.setCheckState(getHeadVO(), InventoryKey.BILLSTATUS, icheckState);
	}

	public Class getBillVOClass() {
		return InventoryVO.class;
	}

	public Class getBodyClass() {
		return InventoryBVO.class;
	}

	public Class getHeadClass() {
		return InventoryHVO.class;
	}

	@Override
	public String getBill_code() {
		return (String)headVO.getAttributeValue("billcode");
	}
	
	

}
